﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebSocketClientApp
{
    public class SendMsgDataClass
    {
    }
    /// <summary>
    /// 客户端发送
    /// </summary>
    public class SendFindDeviceClass 
    {
        /// <summary>
        /// 搜索命令
        /// </summary>
        public string command { get; set; }
    }
    /// <summary>
    /// 服务端找到设备后响应
    /// </summary>
    public class SendFindReplyDeviceClass
    {
        /// <summary>
        /// 搜索命令
        /// </summary>
        public string command { get; set; }
        /// <summary>
        /// 设备名称和设备Mac
        /// </summary>
        public SendFindReplyDevicesubClass device { get; set; }
    }
    public class SendFindReplyDevicesubClass 
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 设备Mac
        /// </summary>
        public string mac { get; set; }
    }
    /// <summary>
    /// 客户端发送设备连接
    /// </summary>
    public class SendConnectDeviceClass
    {
        /// <summary>
        /// 搜索命令
        /// </summary>
        public string command { get; set; }
        /// <summary>
        /// 设备Mac
        /// </summary>
        public SendConnectDeviceSubClass sendConnectDeviceSubClass { get; set; }
    }
    public class SendConnectDeviceSubClass 
    {
        /// <summary>
        /// 设备Mac
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 设备Mac
        /// </summary>
        public string mac { get; set; }
    }
    /// <summary>
    /// 客户端发送设备连接响应
    /// </summary>
    public class SendConnectReplyDeviceClass
    {
        /// <summary>
        /// 搜索命令
        /// </summary>
        public string command { get; set; }
        /// <summary>
        /// 设备Mac和设备是否连接成功
        /// </summary>
        public SendConnectReplyDeviceSubClass sendConnectReplyDeviceSubClass { get; set; }
    }
    public class SendConnectReplyDeviceSubClass
    {
        /// <summary>
        /// 设备Mac
        /// </summary>
        public string mac { get; set; }
        /// <summary>
        /// 设备连接或者失败(true成功，false失败)
        /// </summary>
        public bool result { get; set; }
    }

    /// <summary>
    /// 客户端发送数据(触发设备一直采集)
    /// </summary>
    public class SendDataDeviceClass
    {
        /// <summary>
        /// 搜索命令
        /// </summary>
        public string command { get; set; }
        /// <summary>
        /// 设备Mac
        /// </summary>
        public SendDataDeviceSubClass sendDataDeviceSubClass { get; set; }
    }
    public class SendDataDeviceSubClass
    {
        /// <summary>
        /// 设备Mac
        /// </summary>
        public string mac { get; set; }
    }
    /// <summary>
    /// 客户端响应数据(一直接收设备回复的数据)
    /// </summary>
    public class SendDataDeviceReplyClass
    {
        /// <summary>
        /// 搜索命令
        /// </summary>
        public string command { get; set; }
        /// <summary>
        /// 设备Mac
        /// </summary>
        public SendDataDeviceReplySubClass sendDataDeviceReplySubClass { get; set; }
    }
    public class SendDataDeviceReplySubClass
    {
        /// <summary>
        /// 设备Mac
        /// </summary>
        public string mac { get; set; }
        /// <summary>
        /// 服务端解析的数据
        /// </summary>
        public FlexoData flexoData { get; set; }
    }
}
